package com.aefan.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @Author: jxl
 * @Date: 2021/9/18 上午9:24
 * 服务降级，客户端自己调用提示
 */
@Component
public class PaymentHystrixFallvackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "--------PaymentHystrixFallvackService   fallback    paymentInfo_OK";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "--------PaymentHystrixFallvackService   fallfallback   paymentInfo_TimeOut";
    }
}
